package kr.hkit.powerjava.chapter08;

class A{
	
/*	public void aa(){
		System.out.println("aa()");
	}
	
	public void aa(int a){
		System.out.println("aa(int a)");
	}
	public void aa(int a, int b){}
	public void aa(int a, int b, int c){}*/
	
	public void aa(int ...a){
		System.out.println("인수의 개수 : " + a.length);
		for(int c: a){
			System.out.print(c+" ");
		}
		System.out.println();
	}//end of method aa
	
	public void bb(String str, int...c ){
		System.out.println(str);
		System.out.println("인수의 개수 : " + c.length);
		
		for(int d: c){
			System.out.print(d+" ");
		}
	}//end of method bb
	
/*	public void aa(double b){
		System.out.println("aa(double b)");
	}*/
	
}//end of class AA


public class MethodCallTest {
	public static void main(String[] args) {
		A a = new A();
		a.bb("aa", 1,2,3,4);
		a.bb("aa", 1,2,3);
		a.bb("aa", 1,2);
		a.bb("aa", 1);
		
		System.out.println("=======================");
		
		a.aa();
		a.aa(3);
		a.aa(1,2);
		a.aa(1,2,3);
		a.aa(1,2,3,4);


	}
}
